package drds.server.execute_engine;

public class QueryResult<Result> {
	private final Result result;
	private final boolean success;

	private final String dataNode;
	// dataNode or database name
	private String tableName;

	public QueryResult(Result result, boolean success) {
		super();
		this.result = result;
		this.success = success;
		this.dataNode = null;
	}

	public QueryResult(Result result, boolean success, String dataNode) {
		super();
		this.result = result;
		this.success = success;
		this.dataNode = dataNode;
	}

	public Result getResult() {
		return result;
	}

	public boolean isSuccess() {
		return success;
	}

	public String getDataNode() {
		return dataNode;
	}

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

}
